﻿@{
    ViewBag.Title = "AddFish";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="~/Content/ckfinder/ckfinder.js"></script>
    <script src="~/Content/ckeditor/ckeditor.js"></script>
}
<style type="text/css">
    .a {
        width: 260px;
    }

    .b {
        width: 130px;
    }
</style>

<h2 style="margin-left:300px; color:#0094ff; font-size:18px; ">Thêm loài mới</h2>
<br />
<br />

@using (Html.BeginForm())
{
    <table style="margin-left:250px;">
        <tr>

            <td>@Html.Raw(ViewBag.image)</td>
        </tr>

    </table>

    <table>
        <tr>
            <td>1,Thêm ảnh mới:</td>
            <td>@Html.TextBox("image1")</td>
            <td><input type="button" value="Chọn tệp tin" id="chon1" /></td>
        </tr>
        <tr>
            <td>2,Thêm ảnh mới:</td>
            <td>@Html.TextBox("image2")</td>
            <td><input type="button" value="Chọn tệp tin" id="chon2" /></td>
        </tr>
        <tr>
            <td>3,Thêm ảnh mới:</td>
            <td>@Html.TextBox("image3")</td>
            <td><input type="button" value="Chọn tệp tin" id="chon3" /></td>
        </tr>
        <tr>
            <td>4,Thêm ảnh mới:</td>
            <td>@Html.TextBox("image4")</td>
            <td><input type="button" value="Chọn tệp tin" id="chon4" /></td>
        </tr>
        <tr>
            <td>5,Thêm ảnh mới:</td>
            <td>@Html.TextBox("image5")</td>
            <td><input type="button" value="Chọn tệp tin" id="chon5" /></td>
        </tr>
    </table>
    <br />
    <table>
        <tr>
            <td>Thuộc chi: </td>
            <td>
                @Html.DropDownList("luachon", ViewData["DropDownItems1"] as List<SelectListItem>)
                <a href="@Html.Raw(ViewBag.khac)">Khác</a>
            </td>
        </tr>
        <tr>
            <td>Moi truong song: </td>
            <td>@Html.DropDownList("moitruong", ViewData["DropDownItems2"] as List<SelectListItem>)</td>
        </tr>
        <tr>
            <td><label for="FishName">Tên cá</label></td>
            <td>
                @Html.TextBox("FishName", null, new { style = "width: 500px; height:  20px" })
        </td>
    </tr>
    <tr>

        <td><label for="MainName">Tên chính thức</label></td>
        <td>
            @Html.TextBox("MainName", null, new { style = "width: 500px; height:  20px" })
    </td>
</tr>
<tr>

    <td><label for="Nomerclature">Tên danh pháp </label></td>
    <td>
        @Html.TextBox("Nomerclature", null, new { style = "width: 500px; height:  20px" })
</td>
</tr>
<tr>

    <td><label for="NameVN">Tên Việt Nam </label></td>
    <td>
        @Html.TextBox("NameVN", null, new { style = "width: 500px; height:  20px" })
</td>
</tr>
<tr>

    <td><label for="FishHabitatVN">Phân bố trong nước</label></td>
    <td>
        @Html.TextArea("FishHabitatVN", null, new { style = "width: 500px; height:  70px" })
</td>
</tr>
<tr>

    <td><label for="FishHabittatW">Phân bố thế giới </label></td>
    <td>
        @Html.TextArea("FishHabittatW", null, new { style = "width: 500px; height:  70px" })
</td>
</tr>
<tr>

    <td><label for="LivingHabit">Tập tính sống </label></td>
    <td>
        @Html.TextArea("LivingHabit", null, new { style = "width: 500px; height:  70px" })
</td>
</tr>
<tr>

    <td><label for="Nutrition">Dinh dưỡng </label></td>
    <td>
        @Html.TextArea("Nutrition", null, new { style = "width: 500px; height:  70px" })
</td>
</tr>
<tr>

    <td><label for="Growth">Sinh trưởng </label></td>
    <td>
        @Html.TextArea("Growth", null, new { style = "width: 500px; height:  70px" })
</td>
</tr>
<tr>

    <td><label for="Reproduction">Sinh sản </label></td>
    <td>
        @Html.TextArea("Reproduction", null, new { style = "width: 500px; height:  70px" })
</td>
</tr>
<tr>

    <td><label for="Scientific">Giá trị khoa học </label></td>
    <td>
        @Html.TextArea("Scientific", null, new { style = "width: 500px; height:  70px" })
</td>
</tr>
<tr>

    <td><label for="Economic">Giá trị kinh tế </label></td>
    <td>
        @Html.TextArea("Economic", null, new { style = "width: 500px; height:  70px" })
</td>
</tr>
<tr>

    <td><label for="Resourcce">Hiện trạng nguồn lợi </label></td>
    <td>
        @Html.TextArea("Resourcce", null, new { style = "width: 500px; height:  70px" })
</td>
</tr>
</table>
    <br />
    <table>
        <tr>

            <td class="b"><label for="LoH_Max">Lo/H max</label></td>
            <td class="a">
                @Html.TextBox("LoH_Max", null, new { style = " width: 80px;" })
        </td>
        <td class="b"><label for="LoH_Min">Lo/H min</label></td>
        <td class="a">
            @Html.TextBox("LoH_Min", null, new { style = " width: 80px;" })
    </td>

</tr>
<tr>

    <td class="b"><label for="LoT_Max">Lo/T max </label></td>
    <td class="a">
        @Html.TextBox("LoT_Max", null, new { style = " width: 80px;" })

    </td>
    <td class="b"><label for="LoT_Min">Lo/T min </label></td>
    <td class="a">
        @Html.TextBox("LoT_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="Lolcd_Max">Lo/lcd max </label></td>
    <td class="a">
        @Html.TextBox("Lolcd_Max", null, new { style = " width: 80px;" })

    </td>
    <td class="b"><label for="Lolcd_Min">Lo/lcd min </label></td>
    <td class="a">
        @Html.TextBox("Lolcd_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="Loccd_Max">Lo/ccd max </label></td>
    <td class="a">
        @Html.TextBox("Loccd_Max", null, new { style = " width: 80px;" })
    </td>
    <td class="b"><label for="Loccd_Min">Lo/ccd min</label></td>
    <td class="a">
        @Html.TextBox("Loccd_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="TOt_Max">T/Ot max </label></td>
    <td class="a">
        @Html.TextBox("TOt_Max", null, new { style = " width: 80px;" })
    </td>
    <td class="b"><label for="TOt_Min">T/Ot min</label></td>
    <td class="a">
        @Html.TextBox("TOt_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="TO_Max">T/O max</label></td>
    <td class="a">
        @Html.TextBox("TO_Max", null, new { style = " width: 80px;" })
    </td>
    <td class="b"><label for="TO_Min">T/O min</label></td>
    <td class="a">
        @Html.TextBox("TO_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="TOO_Max">T/OO max</label></td>
    <td class="a">
        @Html.TextBox("TOO_Max", null, new { style = " width: 80px;" })
    </td>
    <td class="b"><label for="TOO_Min">T/OO min</label></td>
    <td class="a">
        @Html.TextBox("TOO_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="Tlcd_Max">T/lcd max</label></td>
    <td class="a">
        @Html.TextBox("Tlcd_Max", null, new { style = " width: 80px;" })
    </td>

    <td class="b"><label for="Tlcd_Min">T/lcd min</label></td>
    <td class="a">
        @Html.TextBox("Tlcd_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="Tccd_Max">T/ccd max </label></td>
    <td class="a">
        @Html.TextBox("Tccd_Max", null, new { style = " width: 80px;" })
    </td>
    <td class="b"><label for="Tccd_Min">T/ccd min</label></td>
    <td class="a">
        @Html.TextBox("Tccd_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="Hh_Max">H/h max </label></td>
    <td class="a">
        @Html.TextBox("Hh_Max", null, new { style = " width: 80px;" })
    </td>
    <td class="b"><label for="Hh_Min">H/h min</label></td>
    <td class="a">
        @Html.TextBox("Hh_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="OOO_Max">OO/O max </label></td>
    <td class="a">
        @Html.TextBox("OOO_Max", null, new { style = " width: 80px;" })
    </td>
    <td class="b"><label for="OOO_Min">OO/O min</label></td>
    <td class="a">
        @Html.TextBox("OOO_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="lcdccd_Max">lcd/ccd max </label></td>
    <td class="a">
        @Html.TextBox("lcdccd_Max", null, new { style = " width: 80px;" })
    </td>
    <td class="b"><label for="lcdccd_Min">lcd/ccd min</label></td>
    <td class="a">
        @Html.TextBox("lcdccd_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="LcmaxLcmin_Max">Lcmax/Lcmim max </label></td>
    <td class="a">
        @Html.TextBox("LcmaxLcmin_Max", null, new { style = " width: 80px;" })
    </td>
    <td class="b"><label for="LcmaxLcmin_Min">Lcmax/Lcmim min</label></td>
    <td class="a">
        @Html.TextBox("LcmaxLcmin_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="LodaD_Max">Lo/daD max </label></td>
    <td class="a">
        @Html.TextBox("LodaD_Max", null, new { style = " width: 80px;" })
    </td>
    <td class="b"><label for="LodaD_Min">Lo/daD min</label></td>
    <td class="a">
        @Html.TextBox("LodaD_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
<tr>

    <td class="b"><label for="PVVA_Max">P-V/V-A max </label></td>
    <td class="a">
        @Html.TextBox("PVVA_Max", null, new { style = " width: 80px;" })
    </td>

    <td class="b"><label for="PVVA_Min">P-V/V-A min</label></td>
    <td class="a">
        @Html.TextBox("PVVA_Min", null, new { style = " width: 80px;" })
    </td>
</tr>
</table>

    <br />
    <br />
    <p style="margin-left:300px; font-size:18px; "><input style="color:#0094ff;" type="submit" value="Lưu" name="add" /></p>

}

<script type="text/javascript">
    $(document).ready(function () {
        $("#chon1").click(function () {
            var finder = new CKFinder();
            finder.selectActionFunction = function (fileUrl) {
                $("#image1").val(fileUrl);
            };
            finder.popup();
        });
    });
</script>

<script type="text/javascript">
    $(document).ready(function () {
        $("#chon2").click(function () {
            var finder = new CKFinder();
            finder.selectActionFunction = function (fileUrl) {
                $("#image2").val(fileUrl);
            };
            finder.popup();
        });
    });
</script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#chon3").click(function () {
            var finder = new CKFinder();
            finder.selectActionFunction = function (fileUrl) {
                $("#image3").val(fileUrl);
            };
            finder.popup();
        });
    });
</script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#chon4").click(function () {
            var finder = new CKFinder();
            finder.selectActionFunction = function (fileUrl) {
                $("#image4").val(fileUrl);
            };
            finder.popup();
        });
    });
</script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#chon5").click(function () {
            var finder = new CKFinder();
            finder.selectActionFunction = function (fileUrl) {
                $("#image5").val(fileUrl);
            };
            finder.popup();
        });
    });
</script>
